package com.ganbo.redpacket.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by gan on 2020/1/12 15:04.
 */

@AllArgsConstructor
@Getter
public enum ExceptionCode {

    //===================系统相关================
    SUCCESS("200", "操作成功"),
    FAIL("1002", "操作失败"),
    BUILD_SING_FAIL("1001", "构建请求行方签名失败"),
    SYSTEM_EXCEPTION("1003", "系统异常"),
    PARAMETER_ERROR("1004", "参数校验异常"),

    //===================抢红包相关===============
    REDPACKET_ZERO("2000", "红包抢完了"),
    REDPACKET_REPETITION_CLIENT("2001", "短时间内请勿重复点击"),

    ;

    private String code;
    private String message;

}
